package pers.qianyu.module.image.listener.events;

import org.springframework.context.ApplicationEvent;
import pers.qianyu.module.core.domain.comment.entity.CommentPO;

import java.io.Serializable;

/**
 * @author mizzle rain
 * @date 2021-03-18 17:56
 */
public class InsertCommentEvent extends ApplicationEvent implements Serializable {
    private static final long serialVersionUID = -2256223723030611343L;
    private CommentPO commentPO;

    public InsertCommentEvent(Object source, CommentPO commentPO) {
        super(source);
        this.commentPO = commentPO;
    }

    public CommentPO getCommentPO() {
        return commentPO;
    }

    public void setCommentPO(CommentPO commentPO) {
        this.commentPO = commentPO;
    }
}
